#include <string.h>
#include <stdio.h>

size_t my_strlen (const char * str)
{
    size_t i = 0;
    while (str[i] != '\0')
    {
        i++;
    }
    
    return i;
}

int main(int argc, char const * argv[])

{
    char str [128] = "柏李俊白酒王";

    printf("str长度为%ld\n", sizeof(str));
    // printf("str长度为%ld\n", strlen(str));
    printf("str长度为%ld\n", my_strlen(str));
    return 0;
}
